package com.cwh.taskcenter.task.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户行为日志表
 *
 * @author cwh
 * @date 2025-06-20 04:07:30
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserTaskRecordDO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	private Long id;

	/**
	 * 用户ID
	 */
	private Long userId;

	/**
	 * 任务ID
	 */
	private Long taskId;

	/**
	 * 用户任务ID
	 */
	private Long userTaskId;

	/**
	 * 行为类型(SIGNIN/WATCH_VIDEO/ORDER)
	 */
	private String eventType;

	/**
	 * 行为数值(观看时长/订单金额)
	 */
	private Integer eventValue;

	/**
	 * 业务ID(订单ID/视频ID)
	 */
	private String bizId;

	/**
	 * 业务类型(订单/视频)
	 */
	private String bizType;

	/**
	 * 
	 */
	private LocalDateTime createdAt;

	/**
	 * 唯一键
	 */
	private String unionKey;

}